home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / BLAZER.PAK / PROPDLGS.H < prev    next >
C/C++ Source or Header  |  1997-05-06  |  3KB  |  114 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // Copyright (c) 1995, 1995 by Borland International, All Rights Reserved
  4. //
  5. // Declares TSpeedPage and TBitBltPage for use with TPropertySheet.
  6. //----------------------------------------------------------------------------
  7. #if !defined(PROPDLGS_H)
  8. #define PROPDLGS_H
  9.  
  10. #if !defined(OWL_PROPSHT_H)
  11. # include <owl/propsht.h>
  12. #endif
  13. #if !defined(OWL_SLIDER_H)
  14. # include <owl/slider.h>
  15. #endif
  16. #if !defined(OWL_RADIOBUT_H)
  17. # include <owl/radiobut.h>
  18. #endif
  19. #if !defined(OWL_CHECKBOX_H)
  20. # include <owl/checkbox.h>
  21. #endif
  22. #if !defined(OWL_STATIC_H)
  23. # include <owl/static.h>
  24. #endif
  25.  
  26. //
  27. // class TSpeedPage
  28. // ~~~~~ ~~~~~~~~~~
  29. // A property page to manage the speed of the TAboutWindow.
  30. //
  31. class TSpeedPage : public TPropertyPage {
  32.   public:
  33.     TSpeedPage(int factor, int delta, int delay,
  34.                TPropertySheet* parent, TResId resId,
  35.                const char far* title = 0, TResId iconRes = 0,
  36.                TModule* module = 0);
  37.  
  38.     // Override virtuals
  39.     //
  40.     void SetupWindow();
  41.     void CleanupWindow();
  42.  
  43.     // These data members are public to simply usage.
  44.     // A real application would make these private with accessors.
  45.     //
  46.     int FactorValue;
  47.     int DeltaValue;
  48.     int DelayValue;
  49.  
  50.   private:
  51.     // Forward help message to main window
  52.     //
  53.     void      EvHelp(HELPINFO*);
  54.  
  55.     TStatic*  RandomFactorPlace;
  56.     THSlider* RandomFactor;
  57.     TStatic*  DeltaPlace;
  58.     THSlider* Delta;
  59.     TStatic*  DelayPlace;
  60.     THSlider* Delay;
  61.  
  62.   DECLARE_RESPONSE_TABLE(TSpeedPage);
  63.   DECLARE_HELPCONTEXT(TSpeedPage);
  64. };
  65.  
  66. //
  67. // class TBitBltPage
  68. // ~~~~~ ~~~~~~~~~~~
  69. // A property page to determine how the TAboutWindow bitblts the image
  70. // to the screen. Either using destructive blits or sprite/transparent
  71. // blits.
  72. //
  73. class TBitBltPage : public TPropertyPage {
  74.   public:
  75.     TBitBltPage(bool blitterBlocks, bool sound,
  76.                 TPropertySheet* parent, TResId resId,
  77.                 const char far* title = 0, TResId iconRes = 0,
  78.                 TModule* module = 0);
  79.  
  80.     // Override virtuals
  81.     //
  82.     void SetupWindow();
  83.     void CleanupWindow();
  84.  
  85.     // This data member is public to simply usage.
  86.     // A real application would make this private with accessors.
  87.     //
  88.     bool BlitterBlocks;
  89.     bool EnableSound;
  90.  
  91.   private:
  92.     // Forward help message to main window
  93.     //
  94.     void EvHelp(HELPINFO*);
  95.     void BnDestructiveClicked();
  96.     void BnSpriteClicked();
  97.  
  98.     TRadioButton* Destructive;
  99.     TRadioButton* Sprite;
  100.     TCheckBox*    Sound;
  101.  
  102.   DECLARE_RESPONSE_TABLE(TBitBltPage);
  103.   DECLARE_HELPCONTEXT(TBitBltPage);
  104. };
  105.  
  106.  
  107. //
  108. // declare Globals
  109. //
  110. extern int RandomMax;
  111. extern int AbsoluteDelta;
  112.  
  113. #endif // PROPDLGS_H
  114.